package com.swagger.jboot.demo.api;

import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/6/30
 */
@Api(tags = "与basePath配置相同")
@RequestMapping(value = "/api", viewPath = "/WEB-INF/pages/admin")
public class IndexController extends JbootController {

    @ApiOperation("首页")
    public void index() {
        this.redirect("/index.html");
    }

    @ApiOperation("hello world")
    public void hello() {
        this.renderText("hello world");
    }

}
